v368 — CORI Mail Custom SMTP Testing and Guarded Send Preparation

Purpose

v368 continues the CORI Mail track after v367.1. The priority is to make company-owned email setup more real without making the user interface harder for dispatch teams.

The build adds a server-side test path for saved Custom Domain SMTP accounts. Users can save their company email credentials in Workspace Integrations, then run a connection test without sending a real email.

What changed

User-facing rule

CORI may not send a real email just because a connection test passes.

The correct flow is save the email account, test SMTP, let CORI prepare the draft, let the user review the words, and send only after final approval is wired and enabled.

Workspace Integrations impact

At /company/integrations, the Email tab now supports saving company SMTP credentials, testing the saved SMTP account, showing the last check time, and marking the account connected when login works.

CORI Mail impact

At /cori/mail, CORI Mail now explains that custom domain email must be saved and tested through Workspace Integrations before real sending can be enabled.

Prisma schema impact

No Prisma schema changes were added in v368. v368 uses the schema-backed integration and CORI Mail tables introduced in v367.

Next recommended step

After v368 passes, decide whether to deepen Workspace Integrations for Twilio, Google Maps, QuickBooks, and Stripe Connect readiness, or continue CORI Mail by wiring approved-send execution behind a guarded provider rail.